const {
  getYouXiaTitleContent,
  getYouXiaRanking,
  getYouXiaDetailGame,
  getYouxiaSteamRanking,
  getYouxiaTypeGame,
  getYouxiaAllGame,
  getYouxiaGameJudgeCard,
} = require("../utils/index");
class youxiaService {
  async getGameContent(type) {
    return await getYouXiaTitleContent(type);
  }

  async getGameRanking() {
    return await getYouXiaRanking();
  }

  async getGameHomeCard() {
    return await getYouXiaDetailGame();
  }
  async getSteamRanking() {
    return await getYouxiaSteamRanking();
  }
  async getRecentGameType(type) {
    return await getYouxiaTypeGame(type);
  }
  async getAllGames(pageNumber) {
    return await getYouxiaAllGame(pageNumber);
  }
  async getGameJudgeCard() {
    return await getYouxiaGameJudgeCard();
  }
}

module.exports = new youxiaService();
